﻿@model Auction_Intranet.Models.LeaveGroupModel
@{
    ViewBag.Title = "Leave group";
}
<div class="page">
    @Html.ActionLink("Back", "Index", "Groups", null, new { @class = "subpage-back", title="Back" })

    <div class="black-shadow-box delete-bid">
        <h3>Are you sure you want to leave this group?</h3>

        <div class="display-label">Group Name</div>
        <div class="display-field">
              @Html.DisplayFor(model => model.group.Name)
        </div>    

        <div class="display-label">Credit available</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.balanceAvailable)
        </div>

        <div class="display-label">Credit invested</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.balanceInvested)
        </div>
    
        @using (Html.BeginForm())
        {
            <p>
                <input type="submit" class="input-button" value="Leave" title="Leave Group" /> <input type="button" value="Cancel" class="input-button" title="Cancel" onclick="javascript:document.location.href='@Url.Action("Index", "Groups")'"/>                
            </p>
        }
    </div>
</div>

